package com.bootdo.common.service;

import com.bootdo.common.domain.FileForm;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

/**
 * @author SiMan
 * @date 2019/11/17 14:29
 */
public interface VideoUploadService {
	/**
	 * 上传文件
	 * @param form 文件表单信息
	 * @param multipartFile 文件
	 * @return
	 */
	Map<String, Object> realUpload(FileForm form, MultipartFile multipartFile) throws IOException, Exception;

	Map<String, Object> findByFileMd5(String md5);

}
